package ynu.lcy.elememicroserviceserviceclient.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import ynu.lcy.dto.file.UploadFileRequest;
import ynu.lcy.elememicroservicecommon.exception.BusinessException;
import ynu.lcy.entity.User;

/**
 * 用户内部服务
 */
@FeignClient(name = "eleme-microservice-upload",path = "/api/upload/inner")
public interface FileUploadFeignClient {

    /**
     * 文件上传
     * @param request 文件上传请求
     * @return 文件上传结果
     * */
    @PostMapping("/upload")
    String upload(@RequestBody UploadFileRequest request);
}
